package com.idheima.lon;

public class Students {
    private String name;
    private String id;
    private String sex;
    private String phone;
    private String background;
    private String classname;
    private int times;
    private double deduct ;

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public Double getDeduct() {
        return deduct;
    }

    public void setDeduct(Double deduct) {
        this.deduct = deduct;
    }

    public Students() {
    }

    public Students(String name, String id, String sex, String phone, String background, String classname) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.phone = phone;
        this.background = background;
        this.classname = classname;
        this.times = 0;
        this.deduct = 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    @Override
    public String toString() {
        return "Students{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", background='" + background + '\'' +
                ", classname='" + classname + '\'' +
                '}';
    }
}
